<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSignSetTypeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sign_set_type', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name',40)->default('')->comment('名称');
            $table->integer('project_id')->default(0)->comment('项目id');
            $table->integer('type')->default(0)->comment('类型1签约0非签约');
            $table->integer('template_id')->default(0)->comment('关联审批模板0不需要审批');
            $table->string('match_level')->nullable()->comment('匹配等级1建筑形式2补偿方式(多个逗号隔开)');
            $table->timestamps();
            $table->softDeletes();
        });
        \Illuminate\Support\Facades\DB::statement("ALTER TABLE `sign_set_type` comment '协议模板类型表'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sign_set_type');
    }
}
